package com.cskaoyan.service;

import com.cskaoyan.bean.data.PageData;
import com.cskaoyan.model.MarketCart;
import com.cskaoyan.model.MarketCouponUser;

import java.math.BigDecimal;
import java.util.List;

public interface CouponUserService {
    List checkout(int userId, Integer couponId, BigDecimal goodsTotalPrice);

    PageData findCouponListById(Integer status, Integer page, Integer limit, Integer userId);

    Integer receviceNewCoupon(Integer couponId, Integer userId);

    PageData getSelectList(Integer cartId, Integer grouponRulesId, Integer userId);

    Integer addExchangeCoupon(String code, Integer userId);

    List<MarketCouponUser> findCouponById(Integer userId, List<MarketCart> marketCarts);

    MarketCouponUser findByUserCouponId(Integer userId, Integer userCouponId);
}
